package com.qf.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
public class TaskDemo {

    @Scheduled(cron = "* * * * * ?")
    public void task() {
        System.out.println("任务执行了....." + new Date());
    }
}
